class BaiduApiError(Exception):
    """百度API错误"""
    def __init__(self, errno, errmsg):
        self.errno = errno
        self.errmsg = errmsg
        super().__init__(f"API错误 {errno}: {errmsg}")

class NetworkError(Exception):
    """网络错误"""
    pass
